{layout name="p/base"}
    <div class="row">
      <div class="col-lg-12">
        <h1>营地管理 <small>泊位信息列表</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="/camp"><i class="fa fa-dashboard"></i> 营地信息列表</a></li>
          <li><a href="/camp/{$camp_list.id}/park"><i class="fa fa-dashboard"></i> 泊位信息列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 泊位分布图</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以上传、修改或删除泊位分布图
        </div>
        <h3 class="text-success">{$camp_list.name}</h3>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
      <form id='map' enctype="multipart/form-data" action="/camp/{$camp_list.id}/setmap"  method="post" >
        <div class="form-group">
          <label for="inputfile">请上传泊位分布图</label>
          <input type="file" id="img" name='img'>
          <p class="help-block">上传成功后图片将显示在下面区域。</p>
          <img  src="{php} echo model('Upload','model\service')->getObjectUrlById($camp_list['img']);{/php}" width="500" height="300"  />   
        </div>
        <div class="form-group">
        <button type="submit" id='setImg' class="btn btn-primary">提交</button>
        <a href="berth-list.php" class="btn btn-default">返回</a>
        </div>
      </form>
      </div>
    </div>
    <!-- /.row -->

